<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>

<div class="wrap">
	<a href="<?=site_url('administrator/home');?>"><div id="icon-index" class="icon32"><br /></div></a><br>
<h3><a>Home -> Edit -> User</a></h3>

<?if(!(empty($mode))){echo"<div class='$mode'><p>$pesan</p></div><br/><br/>";}?>
<div id="dashboard-widgets-wrap">
form dibawah ini untuk mengubah data user. 

<?php

foreach($query as $row){
	$id 		= $row->id;
	$username	= $row->username;
	$nama		= $row->nama;	
	$email		= $row->email;
}
?>
<form name="form" id="form" action="<?=site_url('administrator/update_user')?>" onsubmit="return validate(this)" method="POST">
    <table class="form-table">
	<tr>
		<th><label for="name">Nama</label></th>
		<td><input type="text" name="nama_user" id="name" value="<?=$nama?>" style="width:70%" /><br></td>
		<input type="hidden" name="id" value="<?=$id?>">
	</tr>
	<tr>
		<th><label for="email">Email</label></th>
		<td><input type="text" name="email_user" id="email" value="<?=$email?>" style="width:70%" /><br></td>
	</tr>
	<tr>
		<th><label for="username">Username</label></th>
		<td><input type="text" name="username_user" id="username" value="<?=$username?>" style="width:70%"/><br>
		<br><font color="#FF0000"><b><img src="<?=base_url()?>css/icon/penting.png"/>&nbsp;&nbsp;Jika tidak ingin mengganti password, dua field password dibawah ini tidak perlu di ubah</b></font></td>
	</tr>
	<tr>
		<th><label for="password">Password </label></th>
		<td><input type="password" name="password_user" id="password" style="width:70%"/><br> isi password user</td>
	</tr>
	<tr>
		<th><label for="konf_password">Konf Password</label></th>
		<td><input type="password" name="konf_password_user" id="konf_password" style="width:70%"/><br> ketikkan kembali password user</td>
	</tr>
	<tr>
		<th><input type="submit" value="Submit" /></th>
	</tr>
	</table>
  </form>



</div>
</div><!-- wrap -->


<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
